package com.os.common.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.os.common.validator.impl.CheckSpecialCharactersValidator;
@Constraint(validatedBy = CheckSpecialCharactersValidator.class)
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CheckSpecialCharacters {
    String message() default "不可包括特殊字符";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
